package com.luckeys.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.luckeys.dao.ActivityTypeDao;
import com.luckeys.service.ActivityTypeService;
import com.luckeys.vo.ActivityTypeVO;
import com.luckeys.vo.PageVO;

/**
 * 型号实现类
 * @author tbh
 *
 */
@Service
public class ActivityTypeServiceImpl implements ActivityTypeService {
	@Autowired
	private ActivityTypeDao activityTypeDao;

	public List<ActivityTypeVO> queryActivityTypeList(ActivityTypeVO ActivityTypeVO) {
		return activityTypeDao.queryActivityTypeList(ActivityTypeVO);
	}

	public PageVO<ActivityTypeVO> queryActivityTypePage(ActivityTypeVO ActivityType) {
		PageVO<ActivityTypeVO> page = new PageVO<ActivityTypeVO>();
		page.setData(activityTypeDao.queryActivityTypePage(ActivityType));
		page.setTotalRecords(activityTypeDao.queryActivityTypeCount(ActivityType));
		return page;
	}

	public int addActivityType(ActivityTypeVO ActivityType) {
		return activityTypeDao.addActivityType(ActivityType);
	}

	public int deleteActivityType(String ActivityTypeUuid) {
		return activityTypeDao.deleteActivityType(ActivityTypeUuid);
	}

	public ActivityTypeVO queryActivityTypeById(String ActivityTypeUuid) {
		return activityTypeDao.queryActivityTypeById(ActivityTypeUuid);
	}

	public int updateActivityType(ActivityTypeVO ActivityType) {
		return activityTypeDao.updateActivityType(ActivityType);
	}

}
